<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>To-Do List</title>
    <style>
        .completed {
            text-decoration: line-through;
        }
    </style>
</head>
<body>
<div id="app">
    <h1>To-Do List</h1>
    <form>
        <input type="text" name="todoInput" placeholder="Add a new to-do">
        <button type="submit">Add</button>
    </form>
    <ul></ul>
</div>

<script src="model.js"></script>
<script src="view.js"></script>
<script src="controller.js"></script>
<script>
    const rootElement = document.getElementById('app');
    const model = new TodoModel();
    const view = new TodoView(rootElement);
    const controller = new TodoController(model, view);

</script>
</body>
</html>